package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Role;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author: 颛诚诚
 * @Date： 2020/9/25   11:39
 */
public interface RoleService {
    public PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    void add(Integer[] permissionIds, Integer[] menuIds, Role role);

    Role findById(Integer id);

    void update(Integer[] permissionIds, Integer[] menuIds, Role role);

    Result delete(Integer id);

    List<Role> findAll();

    List<Integer> findRoleIdsByUserId(Integer userId);
}
